﻿#include "dxstdafx.h"
#include "TerrainTypeInfo.h"

const _stTerrainTypeInfo* CTerrainTypeInfo::GetInfoCPtr(const std::wstring& KeyIn) const
{
	auto result = m_mapTerrainTypeInfo.find(KeyIn);
	if (m_mapTerrainTypeInfo.end() == result)
	{
		return nullptr;
	}
	return &result->second;
}

bool CTerrainTypeInfo::IsDataComplete() const
{
	for (const auto& it : m_mapTerrainTypeInfo)
	{
		if (it.second.empty())
		{
			return false;
		}
	}
	return true;
}
